package com.saladin.personalFinancialSystem.service.impl;

import com.saladin.personalFinancialSystem.mapper.FinancialRecordCurrentMonthMapper;
import com.saladin.personalFinancialSystem.mapper.FinancialRecordMapper;
import com.saladin.personalFinancialSystem.model.FinancialRecord;
import com.saladin.personalFinancialSystem.model.FinancialRecordCurrentMonth;
import com.saladin.personalFinancialSystem.service.FinancialRecordCurrentMonthService;
import com.saladin.personalFinancialSystem.service.FinancialRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service//表示业务层的注解 将当前类的实例交给Spring来进行管理
public class FinancialRecordCurrentMonthServiceImpl implements FinancialRecordCurrentMonthService {
    //声明持久化的对象
    @Autowired
    private FinancialRecordCurrentMonthMapper financialRecordCurrentMonthMapper;

    @Override
    public List<FinancialRecordCurrentMonth> queryFinancialRecordCurrentMonthList(int userId) {
        return financialRecordCurrentMonthMapper.getFinancialRecordCurrentMonthList(userId);
    }

}
